package org.com.practice.nacos.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

@RestController
public class UserController {

    @RequestMapping("/hello/{name}")
    public Mono<String> hello(@PathVariable String name) {
        return Mono.just("hello " + name);
    }

}
